package org.abacus.platform.util;

import java.util.Collection;
import java.util.Map;

public class CollectionUtil {

	/**
	 *
	 * @param arg0
	 * @return
	 */
	public final static boolean isEmpty(Collection<?> arg0) {
		if (null != arg0 && arg0.size() > 0) {
			return false;
		}
		return true;
	}

	/**
	 *
	 * @param arg0
	 * @return
	 */
	public final static boolean isEmpty(Map<?, ?> arg0) {
		if (null != arg0 && arg0.size() > 0) {
			return false;
		}
		return true;
	}

	/**
	 *
	 * @param arg0
	 * @return
	 */
	public final static boolean isEmpty(Object[] arg0) {
		if (null != arg0 && arg0.length > 0) {
			return false;
		}
		return true;
	}
}
